#-------------------------------------------------
#
# Project created by QtCreator 2020-02-24T11:41:17
#
#-------------------------------------------------
QT += serialport
QT       -= gui

TARGET = HandlerPlugin
TEMPLATE = lib

DEFINES += HANDLERPLUGIN_LIBRARY

PROROOT=/home/lbw/Work/SDK
OPENCV_HOME=/SDK/opencv320
BOOST_HOME = /SDK/boost1640
MVCAM_COMMON_HOME=/opt/MVS


MOC_DIR = $$OUT_PWD/moc
OBJECTS_DIR = $$OUT_PWD/obj



INCLUDEPATH += $${OPENCV_HOME}/include \
               $${PROROOT}/include \
               $${PROROOT}/include/image2 \
               $${BOOST_HOME}/include \
               $${MVCAM_COMMON_HOME}/include

LIBS += -L$${OPENCV_HOME}/lib \
        -L$${PROROOT}/lib \
        -L$${BOOST_HOME}/lib/release \
        -lbase  \
        -latomic \
        -lboost_filesystem -lboost_system -lboost_date_time \
        -lusb-1.0\#-leigen3





DEFINES += QT_DEPRECATED_WARNINGS

# You can also make your code fail to compile if you use deprecated APIs.
# In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

SOURCES += \
        HandlerPlugin.cpp \
    src/device/HandleHelper.cpp \
    src/Communication/Serial/content/SerialBase.cpp \
    src/Communication/Serial/content/QSerialControl.cpp \
    src/Communication/Serial/content/ModbusControl.cpp \
    src/Communication/Serial/content/BoostControl.cpp \
    src/Communication/Serial/SerialHelper.cpp \
    src/Communication/USBController/content/USBPPControl.cpp \
    src/Communication/USBController/content/USBBase.cpp \
    src/Communication/USBController/content/LibUSBControl.cpp \
    src/Communication/USBController/USBHelper.cpp

HEADERS += \
        HandlerPlugin.h \
        handlerplugin_global.h \ 
    define/data_define.h \
    define/func_define.h \
    proto/protocol.h \
    device/HandleHelper.h \
    Communication/Serial/content/SerialBase.h \
    Communication/Serial/content/QSerialControl.h \
    Communication/Serial/content/ModbusControl.h \
    Communication/Serial/content/BoostControl.h \
    Communication/Serial/SerialHelper.h \
    Communication/USBController/content/USBPPControl.h \
    Communication/USBController/content/USBBase.h \
    Communication/USBController/content/LibUSBControl.h \
    Communication/USBController/USBHelper.h \
    define/pubinc.h \
    define/pubimp.h \
    define/handler_error.h

unix {
    target.path = /usr/lib
    INSTALLS += target
}
